import request from '@/api/request'

export function getCases(params) {
  return request({
    url: '/case/wx_case/',
    method: 'GET',
    params
  })
}

export function getCaseById(data_id) {
  return request({
    url: `/case/wx_case/${data_id}/`,
    method: 'GET',
  })
}

export function getClientCases(params) {
  return request({
    url: '/case/wx_client_case/',
    method: 'GET',
    params
  })
}

export function getClientCaseById(data_id) {
  return request({
    url: `/case/wx_client_case/${data_id}/`,
    method: 'GET',
  })
}

export function getCustomerCases(params) {
  return request({
    url: '/case/wx_customer_case/',
    method: 'GET',
    params
  })
}

export function authorizeCase(data) {
  return request({
    url: '/case/wx_customer_case/authorize/',
    method: 'PUT',
    data
  })
}

// export function logout(data) {
//   return request({
//     url: '/user/logout/',
//     method: 'POST',
//     data
//   })
// }
